package com.d5power.utils
{
	public class UVData
	{
		public var offX:int;
		public var offY:int;
		
		public var width:uint;
		public var height:uint;
		
		public var u:Number;
		public var v:Number;
		public var w:Number;
		public var h:Number;
		
		public function formatJson(data:Object):void
		{
			offX = int(data.offX);
			offY = int(data.offY);
			width = int(data.width);
			height = int(data.height);
			
			u = Number(data.u);
			v = Number(data.v);
			w = Number(data.w);
			h = Number(data.h);
		}
		
		public function format(data:Object):void
		{
			offX = int(data.@offX);
			offY = int(data.@offY);
			width = int(data.@width);
			height = int(data.@height);
			
			u = Number(data.@u);
			v = Number(data.@v);
			w = Number(data.@w);
			h = Number(data.@h);
		}
	}
}